package ge.core.system.service;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.fzy.core.utils.RsUtils;

public class ModuleListMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		ModuleListVo vo = new ModuleListVo();
		vo.setId(RsUtils.getLong("id", rs));
		vo.setPackageText(rs.getString("package_text"));
		vo.setPrefixText(rs.getString("prefix_text"));
		vo.setNameText(rs.getString("name_text"));
		vo.setNameShow(rs.getString("name_show"));
		vo.setIsParentMapping(rs.getString("is_parent_mapping"));
		vo.setParentId(RsUtils.getLong("parent_id", rs));
		return vo;
	}

}
